package com.h2210c.user.fenig;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.github.pagehelper.PageInfo;
import com.jiyun.dto.CompetitionDTO;
import com.jiyun.model.Competition;
import com.jiyun.model.CompetitionMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("day12Competition")
public interface ListCompetitionMemberService {
    @RequestMapping("competition/jingsai")
    public List<CompetitionMember> jingsai(@RequestParam("id") Integer id);

    @RequestMapping("competition/jingsaiupdate")
    public void jingsaiupdate();

    @RequestMapping("competition/list")
    public List<Competition>list();
    @RequestMapping("competition/findPage")
    public PageInfo<Competition> findPage(@RequestBody CompetitionDTO competitionDTO);
    @RequestMapping("competition/jiangsaibyid")
    public Competition jiangsaibyid( @RequestParam("id") Integer id );
}
